package com.luozy.common.feignInterceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

//自定义feign的拦截器，添加请求头（因为feign拿不到调用方的原请求）
public class MyFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("authorization", "2");
    }
}
